package com.tyk.bookstore.back.order.model.enume;

import com.fasterxml.jackson.annotation.JsonValue;
import com.tyk.bookstore.back.common.core.model.type.BaseEnum;


/**
 * @author tyk
 * @description 订单状态
 */
public enum OrderState implements BaseEnum {
    WAIT_PAY(0),
    WAIT_SEND(1),
    WAIT_TAKE(2),
    END(3),
    CANCEL(4),
    SPLIT(5);
    
    @JsonValue
    private final Integer code;

    @Override
    public Integer value() {
        return this.code;
    }

    OrderState(Integer code) {
        this.code = code;
    }
}
